package designpattern.prototype.Test;

import java.util.ArrayList;

public class Client {
    public static void main(String[] args) {
        ArrayList<String> list = new ArrayList<>();
        list.add("做饭");
        list.add("洗衣服");
        BeautifulWoman prototypeBeautifulWoman = new BeautifulWoman("小美", 170F,
                55F, 90F,  "漂亮，性格火爆",list);
        BeautifulWoman cloneBeautiful = prototypeBeautifulWoman.deepClone();
        cloneBeautiful.setName("小红");
        cloneBeautiful.setCharacter("漂亮，性格温柔");
        cloneBeautiful.getTask().add("按摩洗脚");
        System.out.println("原女朋友  "+prototypeBeautifulWoman);
        System.out.println("新女朋友  "+cloneBeautiful);
    }
}
